3.5 \(\int \frac{(a+b x) (a c-b c x)^3}{x^2} \, dx\)

Optimal. Leaf size=47 \[ -\frac{a^4 c^3}{x}-2 a^3 b c^3 \log (x)+a b^3 c^3 x^2-\frac{1}{3} b^4 c^3 x^3 \]

[Out]

-((a^4*c^3)/x) + a*b^3*c^3*x^2 - (b^4*c^3*x^3)/3 - 2*a^3*b*c^3*Log[x]

_______________________________________________________________________________________

Rubi [A]  time = 0.0651393, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ -\frac{a^4 c^3}{x}-2 a^3 b c^3 \log (x)+a b^3 c^3 x^2-\frac{1}{3} b^4 c^3 x^3 \]

Antiderivative was successfully verified.

[In]  Int[((a + b*x)*(a*c - b*c*x)^3)/x^2,x]

[Out]

-((a^4*c^3)/x) + a*b^3*c^3*x^2 - (b^4*c^3*x^3)/3 - 2*a^3*b*c^3*Log[x]

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ - \frac{a^{4} c^{3}}{x} - 2 a^{3} b c^{3} \log{\left (x \right )} + 2 a b^{3} c^{3} \int x\, dx - \frac{b^{4} c^{3} x^{3}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((b*x+a)*(-b*c*x+a*c)**3/x**2,x)

[Out]

-a**4*c**3/x - 2*a**3*b*c**3*log(x) + 2*a*b**3*c**3*Integral(x, x) - b**4*c**3*x
**3/3

_______________________________________________________________________________________

Mathematica [A]  time = 0.0114285, size = 39, normalized size = 0.83 \[ c^3 \left (-\frac{a^4}{x}-2 a^3 b \log (x)+a b^3 x^2-\frac{b^4 x^3}{3}\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[((a + b*x)*(a*c - b*c*x)^3)/x^2,x]

[Out]

c^3*(-(a^4/x) + a*b^3*x^2 - (b^4*x^3)/3 - 2*a^3*b*Log[x])

_______________________________________________________________________________________

Maple [A]  time = 0.008, size = 46, normalized size = 1. \[ -{\frac{{a}^{4}{c}^{3}}{x}}+a{b}^{3}{c}^{3}{x}^{2}-{\frac{{b}^{4}{c}^{3}{x}^{3}}{3}}-2\,{a}^{3}b{c}^{3}\ln \left ( x \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((b*x+a)*(-b*c*x+a*c)^3/x^2,x)

[Out]

-a^4*c^3/x+a*b^3*c^3*x^2-1/3*b^4*c^3*x^3-2*a^3*b*c^3*ln(x)

_______________________________________________________________________________________

Maxima [A]  time = 1.34825, size = 61, normalized size = 1.3 \[ -\frac{1}{3} \, b^{4} c^{3} x^{3} + a b^{3} c^{3} x^{2} - 2 \, a^{3} b c^{3} \log \left (x\right ) - \frac{a^{4} c^{3}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x^2,x, algorithm="maxima")

[Out]

-1/3*b^4*c^3*x^3 + a*b^3*c^3*x^2 - 2*a^3*b*c^3*log(x) - a^4*c^3/x

_______________________________________________________________________________________

Fricas [A]  time = 0.200665, size = 65, normalized size = 1.38 \[ -\frac{b^{4} c^{3} x^{4} - 3 \, a b^{3} c^{3} x^{3} + 6 \, a^{3} b c^{3} x \log \left (x\right ) + 3 \, a^{4} c^{3}}{3 \, x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x^2,x, algorithm="fricas")

[Out]

-1/3*(b^4*c^3*x^4 - 3*a*b^3*c^3*x^3 + 6*a^3*b*c^3*x*log(x) + 3*a^4*c^3)/x

_______________________________________________________________________________________

Sympy [A]  time = 0.649685, size = 44, normalized size = 0.94 \[ - \frac{a^{4} c^{3}}{x} - 2 a^{3} b c^{3} \log{\left (x \right )} + a b^{3} c^{3} x^{2} - \frac{b^{4} c^{3} x^{3}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x+a)*(-b*c*x+a*c)**3/x**2,x)

[Out]

-a**4*c**3/x - 2*a**3*b*c**3*log(x) + a*b**3*c**3*x**2 - b**4*c**3*x**3/3

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.238759, size = 62, normalized size = 1.32 \[ -\frac{1}{3} \, b^{4} c^{3} x^{3} + a b^{3} c^{3} x^{2} - 2 \, a^{3} b c^{3}{\rm ln}\left ({\left | x \right |}\right ) - \frac{a^{4} c^{3}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x^2,x, algorithm="giac")

[Out]

-1/3*b^4*c^3*x^3 + a*b^3*c^3*x^2 - 2*a^3*b*c^3*ln(abs(x)) - a^4*c^3/x